package com.roadjava.rbac.bean.vo;
//视图对象，用于封装从数据库查询出来的数据，以便在前端展示。
import com.roadjava.rbac.bean.Recommendation;
import java.time.LocalDateTime;

public class RecommendationVO {
    private Long id;
    private Integer userId;
    private Long resourceID;
    private LocalDateTime lastLogin;
    private String userBehavior;
    private Boolean enableFeedback;

    public RecommendationVO() {
    }

    public RecommendationVO(Recommendation recommendation) {
        this.id = recommendation.getId();
        this.userId = recommendation.getUserId();
        this.resourceID = recommendation.getResourceID();
        this.lastLogin = recommendation.getLastLogin();
        this.userBehavior = recommendation.getUserBehavior();
        this.enableFeedback = recommendation.getEnableFeedback();
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getResourceID() {
        return resourceID;
    }

    public void setResourceID(Long resourceID) {
        this.resourceID = resourceID;
    }

    public LocalDateTime getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(LocalDateTime lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getUserBehavior() {
        return userBehavior;
    }

    public void setUserBehavior(String userBehavior) {
        this.userBehavior = userBehavior;
    }

    public Boolean getEnableFeedback() {
        return enableFeedback;
    }

    public void setEnableFeedback(Boolean enableFeedback) {
        this.enableFeedback = enableFeedback;
    }
}